{% extends "help/base.html" %}
{% load i18n %}

{% block help_con %}
<h3 class="hd">{% trans "Install Seafile client on Linux" %}</h3>
<ul>
  <li><a href="#wiki-ubuntu">Ubuntu</a></li>
  <li><a href="#wiki-debian">Debian</a></li>
  <li><a href="#wiki-centos">Centos/RHEL</a></li>
  <li><a href="#wiki-fedora">Fedora</a></li>
  <li><a href="#wiki-archlinux">Arch Linux</a></li>
  <li><a href="#wiki-cli">Linux CLI</a></li>
</ul>
<h4 id="wiki-ubuntu">Ubuntu</h4>
<p>{% trans "Ubuntu users can install Seafile client from the <a href=\"https://code.launchpad.net/~seafile/+archive/ubuntu/seafile-client\" target=\"_blank\">Official PPA</a>:" %}</p>
<pre><code class="lang-sh">sudo add-apt-repository ppa:seafile/seafile-client
sudo apt-get update
sudo apt-get install seafile-gui
</code></pre>
<p>{% trans "If you only want to install the command-line client, run <code>sudo apt-get install seafile-cli</code> instead." %}</p>
<p>{% trans "If you want to install the debug symbols (for example, when you want to report a bug), you can install the following packages:" %}</p>
<pre><code class="lang-sh">sudo apt-get install libsearpc-dbg ccnet-dbg libccnet-dbg seafile-daemon-dbg libseafile-dbg seafile-gui-dbg
</code></pre>
<p>{% trans "Now you can start seafile client from Unity's dash." %}</p>
<h4 id="wiki-debian">Debian</h4>
<p>{% trans "Debian users can install Seafile client from our debian repo:" %}</p>
<p>{% trans "To install the client, first add the signing key:" %}</p>
<pre><code class="lang-sh">sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8756C4F765C9AC3CB6B85D62379CE192D401AB61
</code></pre>
<p>{% trans "Then add the repo to your apt source list, using the line corresponding to your debian version:" %}</p>
<pre><code># For Debian 7
echo deb http://deb.seadrive.org wheezy main | sudo tee /etc/apt/sources.list.d/seafile.list

# For Debian 8
echo deb http://deb.seadrive.org jessie main | sudo tee /etc/apt/sources.list.d/seafile.list

# For Debian 9
echo deb http://deb.seadrive.org stretch main | sudo tee /etc/apt/sources.list.d/seafile.list
</code></pre>
<p>{% trans "Update your local apt cache :" %}</p>
<pre><code>sudo apt-get update
</code></pre>
<p>{% trans "Now install the client:" %}</p>
<pre><code class="lang-sh">sudo apt-get install seafile-gui
</code></pre>
<p>{% trans "If you only want to install the command-line client, run <code>sudo apt-get install seafile-cli</code> instead." %}</p>

<h4 id="wiki-centos">{% trans "Centos/RHEL (community maintained)" %}</h4>
<p>{% trans "Since 7.0.3 version, we provide official repo for CentOS or RHEL. Currently only CentOS/RHEL 7 is supported." %}</p>
<p>{% trans "Add the repo (The same repo is used for seadrive.)" %}</p>
<pre><code class="lang-sh">wget -O- https://git.io/seadrive-centos7-repo | sudo tee /etc/yum.repos.d/seadrive.repo
</code></pre>
<p>{% trans "Install Seafile Client" %}</p>
<pre><code class="lang-sh">sudo yum install -y epel-release
sudo yum install -y seafile --enablerepo=cr
</code></pre>

<h4 id="wiki-fedora">{% trans "Fedora (community maintained)" %}</h4>
<p>{% trans "There is a <em>community maintained</em> Seafile Client RPM package in Fedora's <a href=\"https://src.fedoraproject.org/rpms/seafile\" target=\"_blank\">official repository</a>." %}</p>

<h4 id="wiki-archlinux">{% trans "Arch Linux (community maintained)" %}</h4>
<p>{% trans "There is a <em>community maintained</em> Seafile Client package for Arch Linux: <a href=\"https://aur.archlinux.org/packages/seafile-client/\" target=\"_blank\">https://aur.archlinux.org/packages/seafile-client/</a>." %}</p>

<h4 id="wiki-cli">{% trans "Linux CLI usage" %}</h4>
<p>{% blocktrans %}Please refer to <a href="{{ SITE_ROOT }}help/linux_cli">this documentation</a> for how to use Linux client on a command line server.{% endblocktrans %}</p>
{% endblock %}
